package com.service.business.member.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.member.controller.rep.MemberSignRep;
import com.service.dao.model.MemberSign;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface MemberSignService extends IService<MemberSign> {

	/**
	 * @Description: 根据传入的yyyy-MM 时间查询当月签到记录
	 * @Author: ty
	 * @Date: 2021/5/28 14:33
	 * @param: [memberId, someday]
	 * @return: com.service.business.member.controller.rep.MemberSignRep
	 **/
	MemberSignRep listByMemberIdAndSomeday(Integer memberId, Date someday);

	/**
	 * @Description: 用户签到
	 * @Author: ty
	 * @Date: 2021/5/28 13:58
	 * @param: [memberId]
	 * @return: void
	 **/
	void sign(Integer memberId);

	/**
	 * @Description: 获取用户某天签到所得积分
	 * @Author: ty
	 * @Date: 2021/6/2 14:29
	 * @param: [memberId, someday]
	 * @return: java.math.BigDecimal
	 **/
	BigDecimal getSomedayByMember(Integer memberId, Date someday);
}
